import request from '../common/request'
export default {
  onPageLoad(query) {
    console.log('query', query);
    $page.state.kaohao = query.kaohao
    $page.state.kl = query.kl
    $page.state.studentName = query.studentName
    let scoreProject = JSON.parse(query.scoreProject)
    $page.state.scoreProject = scoreProject
    $page.state.kaohao = query.kaohao
    $page.state.scoreTotal = scoreProject.find(item=>item.projectName === '总分').score
  },
  onPageShow() {
    //console.log('---------> LifeCycle onPageShow')
  },
  onPageReady() {
    //console.log('---------> LifeCycle onPageReady')
  },
  onPageHide() {
    //console.log('---------> LifeCycle onPageHide')
  },
  onPageUnload() {
    //console.log('---------> LifeCycle onPageUnload')
  },
}